package week3.week03.starbucks_ex;

import com.sun.xml.internal.bind.v2.model.core.ID;

public class DrinkDecorrator implements IDrink {
    protected IDrink iDrink;
    public DrinkDecorrator(IDrink drink) {
        System.out.println("DrinkDecorrator");
        this.iDrink = iDrink;
    }
    public double getPrice(){
        System.out.println("drink");
        return iDrink.getPrice();
    }
}
